<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>求购手工编织篮 - 需求详情 | SocialDemand</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #818cf8;
            --primary-bg: #f0f9ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 1030;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            text-decoration: none;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
        }
        
        .nav-icon {
            font-size: 1.25rem;
            color: var(--secondary);
            transition: var(--transition);
        }
        
        .nav-icon:hover {
            color: var(--primary);
        }
        
        /* 主内容区 */
        .main-content {
            padding: 2rem 0;
        }
        
        .breadcrumb {
            margin-bottom: 1.5rem;
            background-color: transparent;
            padding: 0;
        }
        
        .breadcrumb-item a {
            color: var(--secondary);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--dark);
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }
        
        /* 需求详情卡片 */
        .demand-detail-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        /* 需求图片展示 */
        .demand-images {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .main-image-container {
            width: 100%;
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 0.75rem;
        }
        
        .main-image {
            width: 100%;
            height: 450px;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .main-image:hover {
            transform: scale(1.01);
        }
        
        .thumbnail-container {
            flex: 1;
            min-width: 100px;
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .thumbnail-container:hover, .thumbnail-container.active {
            opacity: 1;
            transform: translateY(-3px);
        }
        
        .thumbnail-image {
            width: 100%;
            height: 100px;
            object-fit: cover;
        }
        
        /* 需求内容区 */
        .demand-content {
            padding: 1.5rem;
        }
        
        .demand-header {
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }
        
        .demand-title {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 1rem;
            line-height: 1.4;
        }
        
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .tag {
            background-color: var(--primary-bg);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .demand-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        /* 作者信息 */
        .author-section {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            background-color: var(--light);
            border-radius: var(--radius);
            margin-bottom: 1.5rem;
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            box-shadow: var(--shadow);
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .author-meta {
            color: var(--secondary);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .author-rating {
            color: var(--warning);
        }
        
        .action-buttons {
            display: flex;
            gap: 0.75rem;
        }
        
        /* 详情描述 */
        .description-section {
            margin-bottom: 2rem;
        }
        
        .section-heading {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .description-content {
            line-height: 1.8;
            font-size: 1.05rem;
        }
        
        .description-content p {
            margin-bottom: 1rem;
        }
        
        .description-content ul {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }
        
        /* 操作按钮区 */
        .demand-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1.5rem 0;
            padding: 1rem;
            background-color: var(--light);
            border-radius: var(--radius);
            align-items: center;
        }
        
        .primary-action {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.65rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
        }
        
        .primary-action:hover {
            background-color: #4338ca;
            transform: translateY(-2px);
        }
        
        .secondary-action {
            background-color: white;
            color: var(--dark);
            border: 1px solid var(--border);
            padding: 0.65rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
        }
        
        .secondary-action:hover {
            background-color: var(--light);
            transform: translateY(-2px);
        }
        
        .icon-action {
            background: none;
            border: none;
            color: var(--secondary);
            padding: 0.65rem;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
        }
        
        .icon-action:hover {
            background-color: var(--primary-bg);
            color: var(--primary);
        }
        
        .icon-action.liked {
            color: var(--danger);
        }
        
        .icon-action.saved {
            color: var(--primary);
        }
        
        /* 留言区 */
        .comments-section {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
            color: var(--dark);
        }
        
        .comment-sort {
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        .comment-sort select {
            background: none;
            border: none;
            color: var(--primary);
            font-weight: 500;
            padding: 0.25rem;
            cursor: pointer;
        }
        
        /* 留言输入框 */
        .comment-input-section {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-input-container {
            flex: 1;
        }
        
        .comment-input {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            resize: none;
            min-height: 100px;
            transition: var(--transition);
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 0.75rem;
        }
        
        .cancel-comment {
            background: none;
            border: none;
            color: var(--secondary);
            padding: 0.5rem 1rem;
        }
        
        .post-comment {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            transition: var(--transition);
        }
        
        .post-comment:hover {
            background-color: #4338ca;
        }
        
        /* 留言列表 */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .comment-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .comment-author {
            font-weight: 500;
        }
        
        .comment-time {
            color: var(--secondary);
            font-size: 0.85rem;
        }
        
        .comment-text {
            margin-bottom: 0.75rem;
            line-height: 1.6;
        }
        
        .comment-footer {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .comment-action {
            color: var(--secondary);
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            transition: var(--transition);
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复区 */
        .replies-section {
            margin-top: 1rem;
            margin-left: 2.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }
        
        .reply-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        
        .reply-content {
            flex: 1;
            background-color: var(--light);
            padding: 0.75rem;
            border-radius: var(--radius);
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }
        
        .reply-author {
            font-weight: 500;
        }
        
        .reply-time {
            color: var(--secondary);
            font-size: 0.8rem;
        }
        
        .reply-text {
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }
        
        .reply-footer {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .reply-input-section {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        
        .reply-input {
            flex: 1;
            padding: 0.75rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            resize: none;
            min-height: 60px;
            font-size: 0.9rem;
        }
        
        .reply-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .reply-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .cancel-reply {
            background: none;
            border: 1px solid var(--border);
            color: var(--secondary);
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .post-reply {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        /* 相关需求推荐 */
        .related-demands {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .demands-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 1rem;
        }
        
        .related-demand-card {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            transition: var(--transition);
        }
        
        .related-demand-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .related-demand-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .related-demand-content {
            padding: 1rem;
        }
        
        .related-demand-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }
        
        .related-demand-meta {
            display: flex;
            justify-content: space-between;
            color: var(--secondary);
            font-size: 0.85rem;
        }
        
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .main-image {
                height: 350px;
            }
            
            .action-buttons {
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 768px) {
            .demand-title {
                font-size: 1.5rem;
            }
            
            .main-image {
                height: 280px;
            }
            
            .demand-actions {
                flex-direction: column;
                align-items: stretch;
            }
            
            .primary-action, .secondary-action {
                width: 100%;
                justify-content: center;
            }
            
            .author-section {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .action-buttons {
                width: 100%;
                justify-content: space-between;
            }
            
            .replies-section {
                margin-left: 1.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                max-width: 100%;
            }
            
            .main-image {
                height: 220px;
            }
            
            .thumbnail-container {
                min-width: 80px;
            }
            
            .thumbnail-image {
                height: 80px;
            }
            
            .demand-meta {
                gap: 1rem;
            }
            
            .section-heading {
                font-size: 1.15rem;
            }
            
            .comments-section {
                padding: 1rem;
            }
            
            .comment-item {
                flex-direction: column;
            }
            
            .user-avatar {
                width: 40px;
                height: 40px;
            }
            
            .demands-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">SocialDemand</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse justify-content-center" id="navbarContent">
                <div class="d-flex search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索需求、用户或标签...">
                </div>
            </div>
            
            <div class="d-flex gap-3 ms-3">
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-home"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-bell"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-plus-circle"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-user-circle"></i>
                </a>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 面包屑导航 -->
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="#">首页</a></li>
                    <li class="breadcrumb-item"><a href="#">需求列表</a></li>
                    <li class="breadcrumb-item"><a href="#">手工制品</a></li>
                    <li class="breadcrumb-item active" aria-current="page">求购手工编织篮</li>
                </ol>
            </nav>
            
            <div class="row">
                <!-- 左侧主内容 -->
                <div class="col-lg-8">
                    <!-- 需求详情卡片 -->
                    <div class="demand-detail-card">
                        <!-- 需求图片 -->
                        <div class="demand-content">
                            <div class="main-image-container">
                                <img src="https://picsum.photos/1200/800?random=10" alt="手工编织篮样品展示" class="main-image" id="mainImage">
                            </div>
                            
                            <div class="demand-images">
                                <div class="thumbnail-container active" onclick="changeMainImage('https://picsum.photos/1200/800?random=10')">
                                    <img src="https://picsum.photos/1200/800?random=10" alt="手工编织篮样品1" class="thumbnail-image">
                                </div>
                                <div class="thumbnail-container" onclick="changeMainImage('https://picsum.photos/1200/800?random=11')">
                                    <img src="https://picsum.photos/1200/800?random=11" alt="手工编织篮样品2" class="thumbnail-image">
                                </div>
                                <div class="thumbnail-container" onclick="changeMainImage('https://picsum.photos/1200/800?random=12')">
                                    <img src="https://picsum.photos/1200/800?random=12" alt="手工编织篮样品3" class="thumbnail-image">
                                </div>
                                <div class="thumbnail-container" onclick="changeMainImage('https://picsum.photos/1200/800?random=13')">
                                    <img src="https://picsum.photos/1200/800?random=13" alt="手工编织篮样品4" class="thumbnail-image">
                                </div>
                            </div>
                            
                            <!-- 需求标题和元数据 -->
                            <div class="demand-header">
                                <h1 class="demand-title">求购手工编织篮，用于周末市集摆摊展示商品</h1>
                                
                                <div class="tags">
                                    <span class="tag">手工制品</span>
                                    <span class="tag">求购</span>
                                    <span class="tag">编织</span>
                                    <span class="tag">市集</span>
                                    <span class="tag">上海</span>
                                </div>
                                
                                <div class="demand-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-clock"></i>
                                        <span>发布于 昨天 15:30</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-map-marker-alt"></i>
                                        <span>上海市 静安区</span>
                                    </div>
                                    <div class="meta-item">
                                        <i class="fas fa-eye"></i>
                                        <span>512 浏览</span>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 作者信息 -->
                            <div class="author-section">
                                <img src="https://picsum.photos/100/100?random=2" alt="王芳的头像" class="author-avatar">
                                
                                <div class="author-info">
                                    <div class="author-name">王芳</div>
                                    <div class="author-meta">
                                        <span><i class="fas fa-user-check"></i> 已认证用户</span>
                                        <span class="author-rating"><i class="fas fa-star"></i> 4.9 (128条评价)</span>
                                        <span><i class="fas fa-calendar-alt"></i> 加入2年</span>
                                    </div>
                                </div>
                                
                                <div class="action-buttons">
                                    <button class="secondary-action">
                                        <i class="fas fa-user-plus"></i> 关注
                                    </button>
                                    <button class="primary-action">
                                        <i class="fas fa-comment"></i> 私信
                                    </button>
                                </div>
                            </div>
                            
                            <!-- 操作按钮区 -->
                            <div class="demand-actions">
                                <button class="primary-action">
                                    <i class="fas fa-handshake"></i> 提供帮助
                                </button>
                                
                                <button class="secondary-action">
                                    <i class="fas fa-share-alt"></i> 分享
                                </button>
                                
                                <button class="icon-action like-btn" id="likeBtn">
                                    <i class="fas fa-thumbs-up liked"></i>
                                    <span>89</span>
                                </button>
                                
                                <button class="icon-action save-btn" id="saveBtn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                                
                                <button class="icon-action report-btn">
                                    <i class="fas fa-flag"></i>
                                    <span>举报</span>
                                </button>
                            </div>
                            
                            <!-- 详情描述 -->
                            <div class="description-section">
                                <h3 class="section-heading">需求详情</h3>
                                
                                <div class="description-content">
                                    <p>本人周末会参加创意市集售卖手作饰品，需要5-8个中等大小的手工编织篮用于展示商品。希望风格简约自然，尺寸大约30×20×15cm左右。</p>
                                    
                                    <p>具体要求：</p>
                                    <ul>
                                        <li>材质最好是天然藤条、竹编或草编</li>
                                        <li>颜色偏向自然色（米色、浅棕等）</li>
                                        <li>结构稳固，能放置小饰品和首饰</li>
                                        <li>底部最好有防滑设计</li>
                                        <li>希望能在本周末（6月15日）前交货</li>
                                    </ul>
                                    
                                    <p>预算每个50-80元，具体可商议。如果有现成的样品可以先看图片，合适的话可以当面交易，地点在静安区或黄浦区都可以。</p>
                                    
                                    <p>有相关制作经验的手工艺人优先，也欢迎爱好者尝试。如果作品满意，未来可能会有长期合作。</p>
                                </div>
                            </div>
                            
                            <!-- 补充信息 -->
                            <div class="description-section">
                                <h3 class="section-heading">补充说明</h3>
                                
                                <div class="description-content">
                                    <p>已收到几位朋友的私信，感谢大家的关注！这里统一说明一下：</p>
                                    <p>1. 不需要太复杂的花纹，简约大方即可</p>
                                    <p>2. 最好能提供实拍图片和大致报价</p>
                                    <p>3. 如果能制作不同尺寸的一套会更好</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 留言区 -->
                    <div class="comments-section">
                        <div class="comments-header">
                            <div class="comments-count">37条留言</div>
                            
                            <div class="comment-sort">
                                排序: 
                                <select id="commentSort">
                                    <option value="latest">最新</option>
                                    <option value="popular">最热</option>
                                </select>
                            </div>
                        </div>
                        
                        <!-- 留言输入框 -->
                        <div class="comment-input-section">
                            <img src="https://picsum.photos/100/100?random=99" alt="当前用户头像" class="user-avatar">
                            
                            <div class="comment-input-container">
                                <textarea class="comment-input" placeholder="写下你的留言..."></textarea>
                                
                                <div class="comment-actions">
                                    <button class="cancel-comment">取消</button>
                                    <button class="post-comment">发布留言</button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言列表 -->
                        <div class="comments-list">
                            <!-- 留言1 -->
                            <div class="comment-item">
                                <img src="https://picsum.photos/100/100?random=3" alt="张巧手的头像" class="user-avatar">
                                
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <div class="comment-author">张巧手</div>
                                        <div class="comment-time">今天 09:42</div>
                                    </div>
                                    
                                    <div class="comment-text">
                                        我是专业编织艺人，有10年经验，正好有符合你要求的编织篮，材质是天然藤条，价格65元一个。可以提供实拍图，周末可以在静安区交货。需要的话可以私信我看样品。
                                    </div>
                                    
                                    <div class="comment-footer">
                                        <button class="comment-action like-comment">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>12</span>
                                        </button>
                                        <button class="comment-action reply-btn">
                                            <i class="far fa-comment"></i>
                                            <span>回复</span>
                                        </button>
                                    </div>
                                    
                                    <!-- 回复区 -->
                                    <div class="replies-section">
                                        <!-- 回复1 -->
                                        <div class="reply-item">
                                            <img src="https://picsum.photos/100/100?random=2" alt="王芳的头像" class="user-avatar">
                                            
                                            <div class="reply-content">
                                                <div class="reply-header">
                                                    <div class="reply-author">王芳 <span style="color: var(--primary);">(作者)</span></div>
                                                    <div class="reply-time">今天 10:15</div>
                                                </div>
                                                
                                                <div class="reply-text">
                                                    你好！麻烦发一下样品图片和具体尺寸给我看看，谢谢！
                                                </div>
                                                
                                                <div class="reply-footer">
                                                    <button class="comment-action like-reply">
                                                        <i class="far fa-thumbs-up"></i>
                                                        <span>2</span>
                                                    </button>
                                                    <button class="comment-action reply-btn">
                                                        <i class="far fa-comment"></i>
                                                        <span>回复</span>
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <!-- 回复2 -->
                                        <div class="reply-item">
                                            <img src="https://picsum.photos/100/100?random=3" alt="张巧手的头像" class="user-avatar">
                                            
                                            <div class="reply-content">
                                                <div class="reply-header">
                                                    <div class="reply-author">张巧手</div>
                                                    <div class="reply-time">今天 10:30</div>
                                                </div>
                                                
                                                <div class="reply-text">
                                                    好的，已经私信发你了，请注意查收
                                                </div>
                                                
                                                <div class="reply-footer">
                                                    <button class="comment-action like-reply">
                                                        <i class="far fa-thumbs-up"></i>
                                                    </button>
                                                    <button class="comment-action reply-btn">
                                                        <i class="far fa-comment"></i>
                                                        <span>回复</span>
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <!-- 回复输入框 -->
                                        <div class="reply-input-section" style="display: none;">
                                            <img src="https://picsum.photos/100/100?random=99" alt="当前用户头像" class="user-avatar">
                                            
                                            <div style="flex: 1;">
                                                <textarea class="reply-input" placeholder="回复 @张巧手..."></textarea>
                                                
                                                <div class="reply-actions">
                                                    <button class="cancel-reply">取消</button>
                                                    <button class="post-reply">回复</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 留言2 -->
                            <div class="comment-item">
                                <img src="https://picsum.photos/100/100?random=4" alt="李手工的头像" class="user-avatar">
                                
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <div class="comment-author">李手工</div>
                                        <div class="comment-time">昨天 18:25</div>
                                    </div>
                                    
                                    <div class="comment-text">
                                        我可以制作竹编的篮子，价格55元一个，但是需要下周二才能交货，因为现在手上还有其他订单。如果时间可以放宽的话可以联系我。
                                    </div>
                                    
                                    <div class="comment-footer">
                                        <button class="comment-action like-comment liked">
                                            <i class="fas fa-thumbs-up"></i>
                                            <span>8</span>
                                        </button>
                                        <button class="comment-action reply-btn">
                                            <i class="far fa-comment"></i>
                                            <span>回复</span>
                                        </button>
                                    </div>
                                    
                                    <!-- 回复区 -->
                                    <div class="replies-section">
                                        <!-- 回复1 -->
                                        <div class="reply-item">
                                            <img src="https://picsum.photos/100/100?random=2" alt="王芳的头像" class="user-avatar">
                                            
                                            <div class="reply-content">
                                                <div class="reply-header">
                                                    <div class="reply-author">王芳 <span style="color: var(--primary);">(作者)</span></div>
                                                    <div class="reply-time">昨天 19:03</div>
                                                </div>
                                                
                                                <div class="reply-text">
                                                    谢谢你的回复，不过我这个周末就要用，时间可能来不及了，下次有需要再联系你~
                                                </div>
                                                
                                                <div class="reply-footer">
                                                    <button class="comment-action like-reply">
                                                        <i class="far fa-thumbs-up"></i>
                                                    </button>
                                                    <button class="comment-action reply-btn">
                                                        <i class="far fa-comment"></i>
                                                        <span>回复</span>
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 留言3 -->
                            <div class="comment-item">
                                <img src="https://picsum.photos/100/100?random=5" alt="陈艺的头像" class="user-avatar">
                                
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <div class="comment-author">陈艺</div>
                                        <div class="comment-time">昨天 16:40</div>
                                    </div>
                                    
                                    <div class="comment-text">
                                        我有3个现成的草编篮，尺寸28×18×14cm，几乎全新，是之前自己做来用的，现在用不上了。如果不介意数量的话可以便宜转给你，3个一共150元。
                                    </div>
                                    
                                    <div class="comment-footer">
                                        <button class="comment-action like-comment">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>5</span>
                                        </button>
                                        <button class="comment-action reply-btn">
                                            <i class="far fa-comment"></i>
                                            <span>回复</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 加载更多留言 -->
                        <div style="text-align: center; margin-top: 1.5rem;">
                            <button class="secondary-action">
                                <i class="fas fa-history"></i> 加载更多留言
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 右侧边栏 -->
                <div class="col-lg-4">
                    <!-- 相关需求推荐 -->
                    <div class="related-demands">
                        <h3 class="section-heading">相关需求</h3>
                        
                        <div class="demands-grid">
                            <a href="#" style="text-decoration: none; color: inherit;">
                                <div class="related-demand-card">
                                    <img src="https://picsum.photos/400/300?random=20" alt="手工编织装饰品图片" class="related-demand-image">
                                    
                                    <div class="related-demand-content">
                                        <div class="related-demand-title">求购手工编织装饰品，用于店铺陈列</div>
                                        
                                        <div class="related-demand-meta">
                                            <span><i class="fas fa-clock"></i> 3天前</span>
                                            <span><i class="fas fa-map-marker-alt"></i> 上海</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                            
                            <a href="#" style="text-decoration: none; color: inherit;">
                                <div class="related-demand-card">
                                    <img src="https://picsum.photos/400/300?random=21" alt="周末市集摊位图片" class="related-demand-image">
                                    
                                    <div class="related-demand-content">
                                        <div class="related-demand-title">寻找周末市集搭子，一起分摊摊位费</div>
                                        
                                        <div class="related-demand-meta">
                                            <span><i class="fas fa-clock"></i> 1周前</span>
                                            <span><i class="fas fa-map-marker-alt"></i> 上海</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                            
                            <a href="#" style="text-decoration: none; color: inherit;">
                                <div class="related-demand-card">
                                    <img src="https://picsum.photos/400/300?random=22" alt="手工制作工具图片" class="related-demand-image">
                                    
                                    <div class="related-demand-content">
                                        <div class="related-demand-title">转让编织工具套装，适合初学者</div>
                                        
                                        <div class="related-demand-meta">
                                            <span><i class="fas fa-clock"></i> 2周前</span>
                                            <span><i class="fas fa-map-marker-alt"></i> 杭州</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                    
                    <!-- 推荐手工艺人 -->
                    <div class="related-demands">
                        <h3 class="section-heading">推荐手工艺人</h3>
                        
                        <div style="display: flex; flex-direction: column; gap: 1rem;">
                            <div style="display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);">
                                <img src="https://picsum.photos/100/100?random=3" alt="张巧手的头像" class="author-avatar" style="width: 50px; height: 50px;">
                                
                                <div style="flex: 1;">
                                    <div style="font-weight: 500;">张巧手</div>
                                    <div style="font-size: 0.85rem; color: var(--secondary);">藤编工艺 · 上海</div>
                                </div>
                                
                                <button class="secondary-action" style="padding: 0.35rem 0.75rem; font-size: 0.9rem;">
                                    <i class="fas fa-user-plus"></i> 关注
                                </button>
                            </div>
                            
                            <div style="display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);">
                                <img src="https://picsum.photos/100/100?random=4" alt="李手工的头像" class="author-avatar" style="width: 50px; height: 50px;">
                                
                                <div style="flex: 1;">
                                    <div style="font-weight: 500;">李手工</div>
                                    <div style="font-size: 0.85rem; color: var(--secondary);">竹编工艺 · 苏州</div>
                                </div>
                                
                                <button class="secondary-action" style="padding: 0.35rem 0.75rem; font-size: 0.9rem;">
                                    <i class="fas fa-user-plus"></i> 关注
                                </button>
                            </div>
                            
                            <div style="display: flex; align-items: center; gap: 1rem;">
                                <img src="https://picsum.photos/100/100?random=6" alt="刘艺的头像" class="author-avatar" style="width: 50px; height: 50px;">
                                
                                <div style="flex: 1;">
                                    <div style="font-weight: 500;">刘艺</div>
                                    <div style="font-size: 0.85rem; color: var(--secondary);">草编工艺 · 上海</div>
                                </div>
                                
                                <button class="secondary-action" style="padding: 0.35rem 0.75rem; font-size: 0.9rem;">
                                    <i class="fas fa-user-plus"></i> 关注
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    

    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            
            // 图片切换功能
            window.changeMainImage = function(src) {
                document.getElementById('mainImage').src = src;
                
                // 更新缩略图活跃状态
                document.querySelectorAll('.thumbnail-container').forEach(container => {
                    container.classList.remove('active');
                });
                
                // 找到对应的缩略图并激活
                document.querySelectorAll('.thumbnail-container').forEach(container => {
                    if (container.querySelector('img').src === src) {
                        container.classList.add('active');
                    }
                });
            };
            
            // 点赞功能
            document.getElementById('likeBtn').addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countSpan = this.querySelector('span');
                let count = parseInt(countSpan.textContent);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas', 'liked');
                    count++;
                    showNotification('点赞成功');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas', 'liked');
                    icon.classList.add('far');
                    count--;
                    showNotification('已取消点赞');
                }
                
                countSpan.textContent = count;
            });
            
            // 收藏功能
            document.getElementById('saveBtn').addEventListener('click', function() {
                const icon = this.querySelector('i');
                const textSpan = this.querySelector('span');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas', 'saved');
                    textSpan.textContent = '已收藏';
                    showNotification('已收藏该需求');
                } else {
                    // 取消收藏
                    icon.classList.remove('fas', 'saved');
                    icon.classList.add('far');
                    textSpan.textContent = '收藏';
                    showNotification('已取消收藏');
                }
            });
            
            // 举报功能
            document.querySelector('.report-btn').addEventListener('click', function() {
                if (confirm('确定要举报这个需求吗？举报原因：垃圾信息、欺诈、不适当内容等')) {
                    showNotification('举报已提交，管理员将尽快处理');
                }
            });
            
            // 留言点赞功能
            document.querySelectorAll('.like-comment').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = countSpan ? parseInt(countSpan.textContent) : 0;
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas', 'liked');
                        if (countSpan) countSpan.textContent = count + 1;
                        else this.innerHTML = '<i class="fas fa-thumbs-up liked"></i><span>1</span>';
                        showNotification('点赞成功');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas', 'liked');
                        icon.classList.add('far');
                        if (countSpan) countSpan.textContent = count - 1;
                        else this.innerHTML = '<i class="far fa-thumbs-up"></i>';
                        showNotification('已取消点赞');
                    }
                });
            });
            
            // 回复点赞功能
            document.querySelectorAll('.like-reply').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = countSpan ? parseInt(countSpan.textContent) : 0;
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas', 'liked');
                        if (countSpan) countSpan.textContent = count + 1;
                        else this.innerHTML = '<i class="fas fa-thumbs-up liked"></i><span>1</span>';
                        showNotification('点赞成功');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas', 'liked');
                        icon.classList.add('far');
                        if (countSpan) countSpan.textContent = count - 1;
                        else this.innerHTML = '<i class="far fa-thumbs-up"></i>';
                        showNotification('已取消点赞');
                    }
                });
            });
            
            // 回复按钮功能
            document.querySelectorAll('.reply-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    // 隐藏所有回复输入框
                    document.querySelectorAll('.reply-input-section').forEach(input => {
                        input.style.display = 'none';
                    });
                    
                    // 显示当前回复的输入框
                    const replySection = this.closest('.comment-content, .reply-content');
                    let replyInputSection = replySection.nextElementSibling;
                    
                    // 如果没有回复输入框，则创建一个
                    if (!replyInputSection || !replyInputSection.classList.contains('reply-input-section')) {
                        const commentItem = this.closest('.comment-item, .reply-item');
                        const authorName = commentItem.querySelector('.comment-author, .reply-author').textContent.trim().split(' ')[0];
                        
                        // 创建回复输入框
                        const newReplyInput = document.createElement('div');
                        newReplyInput.className = 'reply-input-section';
                        newReplyInput.innerHTML = `
                            <img src="https://picsum.photos/100/100?random=99" alt="当前用户头像" class="user-avatar">
                            <div style="flex: 1;">
                                <textarea class="reply-input" placeholder="回复 @${authorName}..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-reply">取消</button>
                                    <button class="post-reply">回复</button>
                                </div>
                            </div>
                        `;
                        
                        // 添加到DOM中
                        if (this.closest('.comment-footer')) {
                            // 如果是评论的回复
                            const repliesSection = document.createElement('div');
                            repliesSection.className = 'replies-section';
                            repliesSection.appendChild(newReplyInput);
                            replySection.appendChild(repliesSection);
                            replyInputSection = newReplyInput;
                        } else {
                            // 如果是回复的回复
                            replySection.parentNode.appendChild(newReplyInput);
                            replyInputSection = newReplyInput;
                        }
                        
                        // 绑定新创建的取消和发布按钮事件
                        replyInputSection.querySelector('.cancel-reply').addEventListener('click', function() {
                            replyInputSection.style.display = 'none';
                        });
                        
                        replyInputSection.querySelector('.post-reply').addEventListener('click', function() {
                            const replyText = replyInputSection.querySelector('.reply-input').value.trim();
                            if (replyText) {
                                showNotification('回复成功');
                                replyInputSection.style.display = 'none';
                                // 这里可以添加代码来实际添加回复到列表中
                            } else {
                                alert('回复内容不能为空');
                            }
                        });
                    } else {
                        replyInputSection.style.display = 'flex';
                    }
                    
                    // 聚焦到输入框
                    if (replyInputSection) {
                        replyInputSection.querySelector('.reply-input').focus();
                    }
                });
            });
            
            // 取消回复按钮
            document.querySelectorAll('.cancel-reply').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.reply-input-section').style.display = 'none';
                });
            });
            
            // 发布回复按钮
            document.querySelectorAll('.post-reply').forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyInput = this.closest('.reply-input-section').querySelector('.reply-input');
                    const replyText = replyInput.value.trim();
                    
                    if (replyText) {
                        showNotification('回复成功');
                        this.closest('.reply-input-section').style.display = 'none';
                        replyInput.value = '';
                        // 这里可以添加代码来实际添加回复到列表中
                    } else {
                        alert('回复内容不能为空');
                    }
                });
            });
            
            // 发布留言按钮
            document.querySelector('.post-comment').addEventListener('click', function() {
                const commentInput = document.querySelector('.comment-input');
                const commentText = commentInput.value.trim();
                
                if (commentText) {
                    showNotification('留言发布成功');
                    commentInput.value = '';
                    // 这里可以添加代码来实际添加留言到列表中
                } else {
                    alert('留言内容不能为空');
                }
            });
            
            // 取消留言按钮
            document.querySelector('.cancel-comment').addEventListener('click', function() {
                document.querySelector('.comment-input').value = '';
            });
            
            // 留言排序
            document.getElementById('commentSort').addEventListener('change', function() {
                const sortType = this.value;
                showNotification(`留言已按${this.options[this.selectedIndex].text}排序`);
                // 这里可以添加排序逻辑
            });
        });
    </script>
</body>
</html>

